package com.tjp.eight.ui.fragment.commentdetails;

import com.tjp.eight.ResultModel;
import com.tjp.eight.ui.fragment.comment.SendCommentResultModel;
import com.tjp.eight.ui.fragment.comment.ZanCommentResultModel;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2017/3/8.
 */

public interface CommentDetailService {
    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("comment/detail")
    Observable<CommentDetailResultModel> loadData(@Body RequestBody requestBody);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("comment/submit")
    Observable<SendCommentResultModel> sendComment(@Body RequestBody requestBody);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("comment/praise")
    Observable<ZanCommentResultModel> zanCDetail(@Body RequestBody rq);
}
